import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/dashboard'
        },
        // 新增项目
        {
            path: '/new_lx_info',
            component: () => import('../components/page/TL/tab_form_input/lx_project.vue'),
            meta: { title: '立项信息' }
        }, {
            //打卡录入
            path: '/daka_input',
            component: () => import('../components/page/TL/tab_form_input/daka_input.vue'),
            meta: { title: '打卡录入' }
        }, {
            //乡镇视图
            path: '/town_view',
            component: () => import('../components/page/TL/viewinfo/view_sys_town.vue'),
            meta: { title: '乡镇视图' }
        }, {
            //乡镇注册
            path: '/town_input',
            component: () => import('../components/page/TL/tab_form_input/sys_town.vue'),
            meta: { title: '乡镇注册' }
        }, {
            //单位视图
            path: '/unit_view',
            component: () => import('../components/page/TL/viewinfo/view_sys_unit.vue'),
            meta: { title: '单位视图' }
        }, {
            //单位注册
            path: '/unit_input',
            component: () => import('../components/page/TL/tab_form_input/sys_unit.vue'),
            meta: { title: '单位注册' }
        }, {
            //用户视图
            path: '/user_view',
            component: () => import('../components/page/TL/viewinfo/view_sys_userconfig.vue'),
            meta: { title: '用户视图' }
        }, {
            //用户注册
            path: '/user_input',
            component: () => import('../components/page/TL/tab_form_input/sys_user.vue'),
            meta: { title: '用户注册' }
        }, {
            //站点信息
            path: '/site_input',
            component: () => import('../components/page/TL/tab_form_input/site_input.vue'),
            meta: { title: '站点信息' }
        }, {
            //摄像头信息
            path: '/camera_input',
            component: () => import('../components/page/TL/tab_form_input/camera_input.vue'),
            meta: { title: '摄像头信息' }
        }, {
            //单位信息
            path: '/unit_input',
            component: () => import('../components/page/TL/tab_form_input/sys_unit.vue'),
            meta: { title: '单位信息' }
        }, {
            //兼职部门信息
            path: '/partTimeunit_input',
            component: () => import('../components/page/TL/tab_form_input/sys_partTimeUnit.vue'),
            meta: { title: '兼职部门信息' }
        }, {
            //群组信息
            path: '/group_input',
            component: () => import('../components/page/TL/tab_form_input/sys_group.vue'),
            meta: { title: '群组信息' }
        },
        {
            //摄像头表格录入asdfasdf
            path: '/projectDetailHome',
            component: () => import('../components/common/ProjectDetialHome.vue'),
            meta: { title: '摄像头表格录入asdfasfd' },
            children: [
                {
                    path: '/dashboard1',
                    component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/TL/project_Warehouse.vue'),
                    meta: { title: '项目库' }
                },
                {
                    path: '/table_sxt1',
                    component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/TL/tab_form_input/form_sxt.vue'),
                    meta: { title: '项目库' }
                }
            ],
        },
        {
            //摄像头表格录入
            path: '/table_sxt',
            component: () => import('../components/page/TL/tab_form_input/form_sxt.vue'),
            meta: { title: '摄像头表格录入' }
        },
        {
            //项目信息详细操作页
            path: '/projectdetial',
            component: () => import('../components/page/TL/viewinfo/project_detial_view.vue'),
            meta: { title: '立项阶段项目信息录入' },
            children: [
                {
                    //项目信息录入表格
                    path: '/lx_info',
                    component: () => import('../components/page/TL/tab_form_input/lx_project.vue'),
                    meta: { title: '立项信息' }
                }, {
                    //立项范围视图
                    path: '/lx_area_xm',
                    component: () => import('../components/page/TL/viewinfo/view_lx_area_xm.vue'),
                    meta: { title: '立项项目范围' }
                },
                {
                    //立项新增指标范围
                    path: '/lx_area_xzzb',
                    component: () => import('../components/page/TL/viewinfo/view_lx_area_xzzb.vue'),
                    meta: { title: '立项新增指标范围' }
                }, {
                    //立项新增耕地范围
                    path: '/lx_area_xzgd',
                    component: () => import('../components/page/TL/viewinfo/view_lx_area_xzgd.vue'),
                    meta: { title: '立项新增耕地范围' }
                }, {
                    //立项新增水田范围
                    path: '/lx_area_xzst',
                    component: () => import('../components/page/TL/viewinfo/view_lx_area_xzst.vue'),
                    meta: { title: '立项新增水田范围' }
                }, {
                    //立项新增产能范围
                    path: '/lx_area_xzcn',
                    component: () => import('../components/page/TL/viewinfo/view_lx_area_xzcn.vue'),
                    meta: { title: '立项新增产能范围' }
                }, {
                    //开发前后地类面积对照表
                    path: '/lx_area_mjdzb',
                    component: () => import('../components/page/TL/viewinfo/view_lx_area_mjdzb.vue'),
                    meta: { title: '开发前后地类面积对照表' }
                },
            ]
        },
        {
            //开发前后地类面积对照表录入
            path: '/lx_area_mjdzb_input',
            component: () => import('../components/page/TL/tab_form_input/lx_mjdzb.vue'),
            meta: { title: '开发前后地类面积对照表录入' }
        }, {
            //立项新增指标范围
            path: '/lx_area_xzzb_input',
            component: () => import('../components/page/TL/tab_form_input/lx_area_xzzb.vue'),
            meta: { title: '立项新增指标范围' }
        }, {
            //立项新增耕地范围
            path: '/lx_area_xzgd_input',
            component: () => import('../components/page/TL/tab_form_input/lx_area_xzgd.vue'),
            meta: { title: '立项新增耕地范围' }
        }, {
            //立项新增产能范围
            path: '/lx_area_xzcn_input',
            component: () => import('../components/page/TL/tab_form_input/lx_area_xzcn.vue'),
            meta: { title: '立项新增产能范围' }
        }, {
            //立项新增水田范围
            path: '/lx_area_xzst_input',
            component: () => import('../components/page/TL/tab_form_input/lx_area_xzst.vue'),
            meta: { title: '立项新增水田范围' }
        }, {
            //立项范围视图
            path: '/lx_area_xm_input',
            component: () => import('../components/page/TL/tab_form_input/lx_area_xm.vue'),
            meta: { title: '立项项目范围' }
        }, {
            path: '/projectAtt',
            component: () => import('../components/page/TL/viewinfo/project_detial_view.vue'),
            meta: { title: '材料信息' },
            children: [
                {
                    path: '/lx_att_cbb',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '立项呈报表' }
                },
                {
                    path: '/lx_att_lxpf',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '立项批复文件' }
                },
                {
                    path: '/lx_att_xbys',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目预算表（工程量、单位、总价）' }
                },
                {
                    path: '/lx_att_zjps',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '专家评审意见' }
                },
                {
                    path: '/lx_att_lxqtdqs',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '立项前土地权属认定表' }
                },
                {
                    path: '/lx_att_cmdb',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '村民代表大会会议纪要' }
                },
                {
                    path: '/lx_att_xckc',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目立项前现场勘查意见' }
                },
                {
                    path: '/lx_att_xgbmyj',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '相关部门意见' }
                },
                {
                    path: '/lx_att_xmssqzp',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目实施前照片' }
                },
                {
                    path: '/lx_att_tdlyzgh',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '土地利用总体规划局部图' }
                },
                {
                    path: '/lx_att_tdzgh',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '土地整治规划局部图' }
                },
                {
                    path: '/lx_att_tdlyxz',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '土地利用现状局部图' }
                },
                {
                    path: '/lx_att_xmqyxz',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目区域现状实测图' }
                },
                {
                    path: '/lx_att_qt',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '其他' }
                },
            ]
        },
        {
            path: '/projectys',
            component: () => import('../components/page/TL/viewinfo/project_detial_view.vue'),
            meta: { title: '验收阶段项目信息录入' },
            children: [
                {
                    //竣工信息
                    path: '/ys_jgxx',
                    component: () => import('../components/page/TL/tab_form_input/ys_project.vue'),
                    meta: { title: '竣工信息' }
                },
                {
                    //新增指标范围
                    path: '/ys_zbfw',
                    component: () => import('../components/page/TL/viewinfo/view_ys_area_zbhw.vue'),
                    meta: { title: '新增指标范围' }
                },
                {
                    //新增耕地界址点管理
                    path: '/ys_gdjzd',
                    component: () => import('../components/page/TL/viewinfo/view_ys_area_gdjzd.vue'),
                    meta: { title: '新增耕地界址点管理' }
                },
                {
                    //新增水田界址点管理
                    path: '/ys_stjzd',
                    component: () => import('../components/page/TL/viewinfo/view_ys_area_stjzd.vue'),
                    meta: { title: '新增水田界址点管理' }
                },
                {
                    //新增产能界址点管理
                    path: '/ys_cnjzd',
                    component: () => import('../components/page/TL/viewinfo/view_ys_area_cnjzd.vue'),
                    meta: { title: '新增产能界址点管理' }
                },
                {
                    //验收地块
                    path: '/ys_ysdk',
                    component: () => import('../components/page/TL/viewinfo/view_ys_area_ysdk.vue'),
                    meta: { title: '验收地块' }
                },
            ]
        },
        {
            //新增指标范围
            path: '/ys_area_zbhw_input',
            component: () => import('../components/page/TL/tab_form_input/ys_area_zbhw.vue'),
            meta: { title: '新增指标范围' }
        },
        {
            //新增耕地界址点管理
            path: '/ys_area_gdjzd_input',
            component: () => import('../components/page/TL/tab_form_input/ys_area_gdjzd.vue'),
            meta: { title: '新增耕地界址点管理' }
        },
        {
            //新增水田界址点管理
            path: '/ys_area_stjzd_input',
            component: () => import('../components/page/TL/tab_form_input/ys_area_stjzd.vue'),
            meta: { title: '新增水田界址点管理' }
        },
        {
            //新增产能界址点管理
            path: '/ys_area_cnjzd_input',
            component: () => import('../components/page/TL/tab_form_input/ys_area_cnjzd.vue'),
            meta: { title: '新增产能界址点管理' }
        },
        {
            //验收地块
            path: '/ys_area_ysdk_input',
            component: () => import('../components/page/TL/tab_form_input/ys_area_ysdk.vue'),
            meta: { title: '验收地块' }
        },
        {
            path: '/projectYsAtt',
            component: () => import('../components/page/TL/viewinfo/project_detial_view.vue'),
            meta: { title: '材料信息' },
            children: [
                {
                    path: '/ys_att_cbb',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目竣工验收呈报表' }
                },
                {
                    path: '/ys_att_pfwj',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目验收批复文件' }
                },
                {
                    path: '/ys_att_ssqqsrdb',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目实施前后分村面积及权属认定表' }
                },
                {
                    path: '/ys_att_dlczb',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '实施前后地类对照表' }
                },
                {
                    path: '/ys_att_ya_att_bgspb',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目规划计划变更审批表' }
                },
                {
                    path: '/ys_att_btlyb',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目表土再利用情况统计表' }
                },
                {
                    path: '/ys_att_gdzl',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '耕地质量等别评定报告' }
                },
                {
                    path: '/ys_att_xmgdzl',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目耕地质量等别数据' }
                },
                {
                    path: '/ys_att_ya_att_jlzj',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '监理总结报告' }
                },
                {
                    path: '/ys_att_ya_att_hqgz',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目后期耕作协议' }
                },
                {
                    path: '/ys_att_ya_att_xmsj',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目审计报告' }
                },
                {
                    path: '/ys_att_cwjs',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '财务结算报告' }
                },
                {
                    path: '/ys_att_sshzp',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目实施后照片' }
                },
                {
                    path: '/ys_att_jgyst',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '竣工验收实测图' }
                }, {
                    path: '/ys_att_xmght',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目规划设计图' }
                },
                {
                    path: '/ys_att_xmwcqk',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '项目规划设计与实际完成情况对照表' }
                },
                {
                    path: '/ys_att_qt',
                    component: () => import('../components/page/TL/tab_form_input/lx_fj.vue'),
                    meta: { title: '其他及复核报告' }
                },
            ]
        },

        //---------------------立项录入信息-------------结束 
        {
            path: '/',
            component: () => import(/* webpackChunkName: "home" */ '../components/common/Home.vue'),
            meta: { title: '自述文件' },
            children: [
                {
                    path: '/dashboard',
                    component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/TL/project_Warehouse.vue'),
                    meta: { title: '项目库' }
                },
                {
                    path: '/icon',
                    component: () => import(/* webpackChunkName: "icon" */ '../components/page/TL/viewinfo/jiankong_view.vue'),
                    meta: { title: '实时监控' }
                },
                {
                    path: '/table',
                    component: () => import(/* webpackChunkName: "table" */ '../components/page/TL/viewinfo/project_view.vue'),
                    meta: { title: '项目源' }
                },
                {
                    path: '/tabs',
                    component: () => import(/* webpackChunkName: "tabs" */ '../components/page/TL/viewinfo/daka_view.vue'),
                    meta: { title: '打卡管理' }
                },
                {
                    path: '/form',
                    component: () => import(/* webpackChunkName: "form" */ '../components/page/BaseForm.vue'),
                    meta: { title: '基本表单' }
                },
                {
                    // 富文本编辑器组件
                    path: '/editor',
                    component: () => import(/* webpackChunkName: "editor" */ '../components/page/VueEditor.vue'),
                    meta: { title: '富文本编辑器' }
                },
                {
                    // markdown组件
                    path: '/markdown',
                    component: () => import(/* webpackChunkName: "markdown" */ '../components/page/Markdown.vue'),
                    meta: { title: 'markdown编辑器' }
                },
                {
                    // 图片上传组件
                    path: '/upload',
                    component: () => import(/* webpackChunkName: "upload" */ '../components/page/Upload.vue'),
                    meta: { title: '文件上传' }
                },
                {
                    // vue-schart组件
                    path: '/charts',
                    component: () => import(/* webpackChunkName: "chart" */ '../components/page/BaseCharts.vue'),
                    meta: { title: 'schart图表' }
                },
                {
                    // 拖拽列表组件
                    path: '/drag',
                    component: () => import(/* webpackChunkName: "drag" */ '../components/page/DragList.vue'),
                    meta: { title: '拖拽列表' }
                },
                {
                    // 拖拽Dialog组件
                    path: '/dialog',
                    component: () => import(/* webpackChunkName: "dragdialog" */ '../components/page/DragDialog.vue'),
                    meta: { title: '拖拽弹框' }
                },
                {
                    // 国际化组件
                    path: '/i18n',
                    component: () => import(/* webpackChunkName: "i18n" */ '../components/page/I18n.vue'),
                    meta: { title: '国际化' }
                },
                {
                    // 权限页面
                    path: '/permission',
                    component: () => import(/* webpackChunkName: "permission" */ '../components/page/Permission.vue'),
                    meta: { title: '权限测试', permission: true }
                },
                {
                    path: '/404',
                    component: () => import(/* webpackChunkName: "404" */ '../components/page/404.vue'),
                    meta: { title: '404' }
                },
                {
                    path: '/403',
                    component: () => import(/* webpackChunkName: "403" */ '../components/page/403.vue'),
                    meta: { title: '403' }
                },
                {
                    path: '/donate',
                    component: () => import(/* webpackChunkName: "donate" */ '../components/page/Donate.vue'),
                    meta: { title: '支持作者' }
                },
                {
                    path: '/systemconfig',
                    component: () => import(/* webpackChunkName: "donate" */ '../components/page/TL/system_config.vue'),
                    meta: { title: '支持作者' }
                }
            ]
        },
        {
            path: '/login',
            component: () => import(/* webpackChunkName: "login" */ '../components/page/Login.vue'),
            meta: { title: '登录' }
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
});
